import constant from '../../constant'
import storage from '../../utils/storage'
import defaultUsers from '../data/roles.json'

let dataName = 'roles'
let data = storage.getOrDefault(dataName, defaultUsers)

export default [
    {
        url: constant.API.SYSTEM.ROLE.LIST,
        type: 'post',
        response: (config) => {
            return {"code":1000,"message":"success","data": storage.getOrDefault(dataName, data)}
        }
    }
]
